package org.jsola.hr.dto.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import static org.jsola.hr.example.CheckInPeopleExample.*;

/**
 * 【预登记信息】excel导入对象
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(description = "【预登记信息】excel导入对象")
public class CheckInPeopleImportDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_NAME, example = E_NAME)
    @Length(max = 32, message = M_NAME_MAX)
    @ExcelProperty(value = "人员名称")
    private String name;

    @ApiModelProperty(notes = N_PHONE, example = E_PHONE)
    @Length(max = 20, message = M_PHONE_MAX)
    @ExcelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(notes = N_IDCARD, example = E_IDCARD)
    @Length(max = 18, message = M_IDCARD_MAX)
    @ExcelProperty(value = "身份证号")
    private String idcard;

    @ApiModelProperty(notes = N_IDCARD, example = E_IDCARD)
    @ExcelProperty(value = "渠道来源")
    private String channelName;

    @ApiModelProperty(notes = N_STATUS, example = E_STATUS)
    @ExcelProperty(value = "人员状态")
    private String statusEnum;


}

